namespace Framework
{
    public class ExecuteTree<T> : Behavior<T>
    {
        private BehaviorTree<T> _childTree;

        public ExecuteTree(BehaviorTree<T> tree)
        {
            _childTree = tree;
        }
        
        public override TaskStatus Update(T context)
        {
            return _childTree.Tick();
        }
    }
}